<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sample of Lightweight MVC</title>
</head>

<body>
    <div>List all users:</div>
    #foreach($u in $users)
        <div>${u.username}, Password: ******, Email: $!{u.email}</div>
    #end
    #if($username)
        <div><a href="signout.do">登出</a></div>
    #else
        <form action="signon.do" method="post">
            <div>登录</div>
            <div>用户名 <input name="username" type="text" id="username" maxlength="20" /></div>
            <div>口令 <input name="password" type="password" id="password" maxlength="20" /></div>
            <div><input name="btnSubmit" type="submit" value="登录" /></div>
        </form>
        <div><a href="register.do">注册</a></div>
    #end
    <p>
        <form action="array.do" method="post">
            <div>Test Array</div>
            <div>Integer 1: <input name="intArray" type="text" value="100" /></div>
            <div>Integer 2: <input name="intArray" type="text" value="200" /></div>
            <div>Integer 3: <input name="intArray" type="text" value="300" /></div>
            <div>String 1: <input name="stringArray" type="text" value="abc" /></div>
            <div>String 2: <input name="stringArray" type="text" value="xyz" /></div>
            <div>String 3: <input name="stringArray" type="text" value="$$$" /></div>
            <div><input name="btnArraySubmit" type="submit" value="Test" /></div>
        </form>
    </p>
</body>
</html>
